import {createStore,combineReducers,applyMiddleware} from "redux"
import {composeWithDevTools} from "redux-devtools-extension"
import thunk from "redux-thunk"
import register from "./modules/register"
import login from "./modules/login"
import home from "./modules/home"
import cate from "./modules/cate"
import detail from  "./modules/detail"
import shop from "./modules/shop"

const reducer=combineReducers({
    register,
    login,
    home,
    cate,
    detail,
    shop
})

const store = createStore(reducer,composeWithDevTools(applyMiddleware(thunk)))

export default store;